<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="static com.yungu.swift.api.config.NacosListener.SYS_CONFIG" %>
<%@ page import="com.yungu.swift.api.config.ApplicationConfig" %>
<%
    String base = "";
    request.setAttribute("base", base);
    request.setAttribute("edition", "0211");
    request.setAttribute("version", "1.8.0");
    request.setAttribute("apiHost", SYS_CONFIG.getApiHost());
    request.setAttribute("appid", SYS_CONFIG.getAppid());
    request.setAttribute("tel", ApplicationConfig.COMMON_CONFIG.getServiceTel());
    request.setAttribute("appName", SYS_CONFIG.getName());
%>
<script>
    if (typeof window.base != 'string') {
        window.base = '${base}';
    }
    window.isRsaEncode = false;
    window.isRsaDectypt = false;
    window.appid = '${appid}'

    window.downloadApp = {
        tel: '${tel}',
        android: "https://a.app.qq.com/o/simple.jsp?pkgname=com.swift.klyc.passenger",
        ios: 'https://apps.apple.com/cn/app/%E5%BF%AB%E6%9D%A5%E7%94%A8%E8%BD%A6/id1492249846?mt=8'
    };
    window.driverApp = {
        android: "https://mobile.baidu.com/item?docid=27068091&f0=search_searchContent%400_appBaseNormal%400",
        ios: 'https://apps.apple.com/cn/app/%E5%BF%AB%E6%9D%A5%E7%94%A8%E8%BD%A6%E5%8F%B8%E6%9C%BA%E7%AB%AF/id1492249763?mt=8'
    };

    window.linkCot = {
        linkImg: "${apiHost}/h5/images/${appid}/logo@2x.png",
        linkTitle: '分享好友',
        linkUrl: "${apiHost}/yue/download",
        linkContent: "分享好友,成为用户"
    }
    window.defaultCity = '厦门市'
</script>
<%--RSA 加密解密--%>
<script type="text/javascript" src="${base}/plugin/jsencrypt/jsencrypt.js?version=${version}"></script>
<%--MD5加密--%>
<script type="text/javascript" src="${base}/plugin/crypto-js/crypto-js.js"></script>


